﻿<src:OverlayWindow x:Class="Gw2Overlay.GraphWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:src="clr-namespace:Gw2Overlay"
        xmlns:mapctrl="clr-namespace:Gw2WvWMapControl;assembly=Gw2WvWMapControl"
        xmlns:mscor="clr-namespace:System;assembly=mscorlib"
        Height="170" Width="170" Topmost="True" WindowStyle="None" AllowsTransparency="True" Background="Transparent" ResizeMode="CanResizeWithGrip" SizeChanged="WindowSizeChanged">
    <Window.Resources>
        <mapctrl:PercentageConverter x:Key="PercentageConverter"/>
        <Style TargetType="MenuItem">
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
        </Style>
        <MenuItem Header="By Matchup" x:Key="Matchups" />
        <MenuItem Header="By World" x:Key="MatchupByWorld" />
        <MenuItem Header="System Voice" x:Key="SystemVoice" />
        <ContextMenu x:Key="WindowMenu">
            <MenuItem Header="New Window" Click="NewWindowClick"/>
            <Separator />
            <MenuItem Header="Maps">
                <MenuItem Header="Current Map (Auto update)" Name="Current" Click="MapClick"/>
                <MenuItem Header="Eternal Battleground" Name="Center" Click="MapClick"/>
                <MenuItem Header="Red Borderlands" Name="RedHome" Click="MapClick"/>
                <MenuItem Header="Blue Borderlands" Name="BlueHome" Click="MapClick"/>
                <MenuItem Header="Green Borderlands" Name="GreenHome" Click="MapClick"/>
            </MenuItem>
            <MenuItem Header="Matchups" Name="Matchups">
                <MenuItem.ItemsSource>
                    <CompositeCollection>
                        <StaticResource ResourceKey="Matchups" />
                        <StaticResource ResourceKey="MatchupByWorld" />
                    </CompositeCollection>
                </MenuItem.ItemsSource>
            </MenuItem>
            <Separator />
            <MenuItem Header="Settings">
                <MenuItem Header="Size">
                    <MenuItem Header="Tiny" Click="ResizeClick" Tag="Tiny" />
                    <MenuItem Header="Small" Click="ResizeClick" Tag="Small" />
                    <MenuItem Header="Medium" Click="ResizeClick" Tag="Medium" />
                    <MenuItem Header="Large" Click="ResizeClick" Tag="Large" />
                    <MenuItem Header="Huge" Click="ResizeClick" Tag="Huge" />
                </MenuItem>
                <MenuItem Header="Transparency">
                    <MenuItem Header="Opaque" Click="TransparentClick" Tag="100" />
                    <MenuItem Header="80%" Click="TransparentClick" Tag="80" />
                    <MenuItem Header="60%" Click="TransparentClick" Tag="60" />
                    <MenuItem Header="40%" Click="TransparentClick" Tag="40" />
                    <MenuItem Header="20%" Click="TransparentClick" Tag="20" />
                </MenuItem>
                <MenuItem Header="Audio Notification">
                    <MenuItem Header="Voice" Click="SoundClick" Tag="Voice" />
                    <MenuItem Header="Voice Naming Convention">
                        <MenuItem Header="Proper Names" Click="NamingClick" Tag="Names" />
                        <MenuItem Header="Cardinal Directions (Borderlands)" Click="NamingClick" Tag="Cardinal" />
                        <MenuItem Header="Cardinal Directions (Borderlands, except keeps)" Click="NamingClick" Tag="CardinalExceptKeeps" />
                    </MenuItem>
                    <MenuItem Header="Spoken World Names">
                        <MenuItem Header="Colors" Click="SpokenNamesClick" Tag="Colors" />
                        <MenuItem Header="World Names" Click="SpokenNamesClick" Tag="Names" />
                    </MenuItem>
                    <MenuItem Header="Speak Map Names">
                        <MenuItem Header="Auto" Click="SpeakMapNamesClick" Tag="Auto" />
                        <MenuItem Header="Always" Click="SpeakMapNamesClick" Tag="On" />
                        <MenuItem Header="Never" Click="SpeakMapNamesClick" Tag="Off" />
                    </MenuItem>
                    <StaticResource ResourceKey="SystemVoice" />
                    <MenuItem Header="None" Click="SoundClick" Tag="None" />
                </MenuItem>
            </MenuItem>
            <Separator />
            <MenuItem Header="Close Window" Click="CloseClick"/>
            <MenuItem Header="Quit" Click="QuitClick"/>
        </ContextMenu>
    </Window.Resources>
    <Window.ContextMenu>
        <StaticResource ResourceKey="WindowMenu" />
    </Window.ContextMenu>
    <Grid x:Name="grid">
        <Rectangle Name="backrect" Stroke="Black" Fill="White" IsHitTestVisible="False" Opacity="0.5" />
        <mapctrl:WvWMapControl WvWMap="Center" Name="wvWMapControl1" Margin="10,10,10,10" />
    </Grid>
</src:OverlayWindow>
